<html>
<head>
<link href="/css/style.css" rel="stylesheet"/>
</head>
<body>
<div id="main">
<div id="main-topnav">
<h1>LiveResults - orienteeringresults online</h1>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/CreateNew">Create Competition</a></li>
<li><a href="/About">About</a></li>
</ul>
</div>
<div id="main-home">
<p><span style="font-size: 170%; font-weight: bold; padding-top: 20px;">{{comp.name}} ({{comp.date}})</span><br/><br/>
<table class="ae-table" id="ae-trust-status-table" style="width: 124px; float: left; margin-right: 15px">
<thead>
<tr><th width="100">Classes</th></tr>
</thead>
<tbody>
 {% if classes %}
 {% for class in classes %}
	{%ifequal class.name curclass%}
        <tr><th>{{class.name}}</th></tr>
	{%else%}
        <tr><td><a href="?class={{class.ident}}">{{class.name}}</a></td></tr>
	{%endifequal%}
    {% endfor %}
{% else %}
<tr><th>No data yet</th></tr>
{%endif%}
</tbody>
</table>

<table class="ae-table" id="ae-trust-status-table" style="width: 830px">
<thead>
<tr><th width="50">Pl.</th><th>Name</th><th>Club</th><th>Time</th><th>Time+</th></tr>
</thead>
<tbody>
 {% if classresults %}
 {% for res in classresults %}
	{%ifequal res.status 'updated'%}
        <tr class="updated"><td>{{res.plac}}</td><td>{{ res.name }}</td><td>{{res.clubname}}</td><td>{{res.time}}</td><td>{{res.timeplus}}</td></tr>
	{%else%} 
        <tr class="{% cycle evenrow,oddrow %}"><td>{{res.plac}}</td><td>{{ res.name }}</td><td>{{res.clubname}}</td><td>{{res.time}}</td><td>{{res.timeplus}}</td></tr>
	{%endifequal%}
    {% endfor %}
{% else %}
<tr><th colspan="5">No results</th></tr>
{%endif%}
</tbody>
</table>
</p>

</div>
</div></div>
<span style="font-size: 8px">Page rendered {{rendertime}} with {{usage}} cpu-seconds.. </span>
</body>
</html>
